package gui.layer;

import java.io.IOException;

import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;

/**
 * The Sprite for the Hunter.
 * @author Sandra Mayer
 *
 */
public class HunterSprite extends Sprite {
	
	public final static String FILENAME = "/hunter.png";
	private static final int SIZEOFHUNTER = 48;
	private static final int POSOFHUNTERWIDTH = 97;
	private static final int POSOFHUNTERTEIGHT = 97;
	
	/**
	 * Constructor.
	 * @param img the name of the image
	 * @throws IOException IOException
	 */
	public HunterSprite() throws IOException {
		super(Image.createImage(FILENAME), SIZEOFHUNTER, SIZEOFHUNTER);
		setHunter(POSOFHUNTERWIDTH, POSOFHUNTERTEIGHT);
	}
	
	/**
	 * Sets the Hunter at a specific position on the display.
	 * @param x x-coordinate
	 * @param y y-coordinate
	 */
	private void setHunter(int x, int y) {
		this.setRefPixelPosition(x, y);
	}
}
